<?php
elgg_load_library('elgg:portfolio');
$tableArray = widget_get_top5holding();
//print_r($tableArray);

foreach($tableArray as $tblRows){
	foreach($tblRows as $tblHead => $tblCells){
		if ($tblHead == 'Ticker') {
			$xray_url = elgg_get_site_url()."xray/$tblCells";
			echo "<a target='_blank' href='$xray_url'>$tblCells";
		} else {
			echo " $tblCells</a>";
		}
	}
	//echo ', ';
	echo '<br/>';
}


